#ifndef _MYSQL_STATEMENT_H_
#define _MYSQL_STATEMENT_H_

#include "mysql_resultset.h"
#include "statement.h"

namespace sql
{

	class MysqlStatement : public sql::Statement
	{
	private:
		sql::Connection* mMysqlHandle;
		ResultSet mResultSet;
	public:
		MysqlStatement( sql::Connection* mysql_handle ) : mMysqlHandle( mysql_handle )
		{
		}
		~MysqlStatement( )
		{
			mResultSet.Free( );
		}

		sql::Connection* getMysqlHandle( ) { return mMysqlHandle; }

		ResultSet* executeQuery( const char* sql );
		uint32_t executeUpdate( );
		void close( );
	};

};

#endif


